<%--
  Created by IntelliJ IDEA.
  User: 67380
  Date: 2016/10/25
  Time: 8:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/css/bootstrap-responsive.min.css" />
    <%--<link rel="stylesheet" href="/css/uniform.css" />--%>
    <link rel="stylesheet" href="/css/select2.css" />
    <link rel="stylesheet" href="/css/matrix-style.css" />
    <link rel="stylesheet" href="/css/matrix-media.css" />
    <link href="font-awesome/css/font-awesome.css" rel="stylesheet" />
    <style type="text/css">
        .datatablebtn{
            float: right;
            margin-top: 3px;
        }

    </style>
</head>
<body style="background-color: transparent">
<div class="widget-box">
    <div class="widget-title"> <span class="icon"><i class="icon-th"></i></span>
        <h5>系统操作</h5>


    </div>
    <div class="widget-content nopadding">
        <table class="table table-bordered data-table" style="width: 100%">
            <thead>
            <tr>
                <th>系统</th>
                <th></th>
            </tr>
            </thead>
            <tr>
                <td>研究生系统</td>
                    <c:if test="${stu==0}">
                        <td><button type="button" class="btn btn-mini btn-success" onclick="sysupdate(1,1)" >开启</button> </td>
                    </c:if>
                    <c:if test="${stu==1}">
                        <td><button type="button" class="btn btn-mini btn-danger" onclick="sysupdate(1,0)">关闭</button> </td>
                    </c:if>

            </tr>
            <tr>
                <td>导师系统</td>
                <c:if test="${tea==0}">
                    <td><button type="button" class="btn btn-mini btn-success" onclick="sysupdate(2,1)">开启</button> </td>
                </c:if>
                <c:if test="${tea==1}">
                    <td><button type="button" class="btn btn-mini btn-danger" onclick="sysupdate(2,0)">关闭</button> </td>
                </c:if>

            </tr>
            <tr>
                <td>负责人系统</td>
                <c:if test="${col==0}">
                    <td><button type="button" class="btn btn-mini btn-success" onclick="sysupdate(3,1)">开启</button> </td>
                </c:if>
                <c:if test="${col==1}">
                    <td><button type="button" class="btn btn-mini btn-danger" onclick="sysupdate(3,0)">关闭</button> </td>
                </c:if>

            </tr>

        </table>
    </div>

</div>

</body>
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery.ui.custom.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/jquery.uniform.js"></script>
<script src="/js/select2.min.js"></script>
<script src="/js/jquery.dataTables.min.js"></script>
<script src="/js/matrix.js"></script>
<script src="/js/matrix.tables.js"></script>

<script>
    $('.stutable').dataTable({
        "bJQueryUI": true,
        "sPaginationType": "full_numbers",
        "sDom": '<""l>t<"F"fp>'
    });
    function excelimport() {
        $("#excelimport").click();

    }
    function add() {
       window.location.href="/teaadd"

    }
    $("#excelimport").change(function () {
        $("#studentform button").click();
    })
    function deleterow(carid) {
        if(confirm("是否确定删除")){
            window.location.href="/teadelete?cardid="+carid;
        }
    }
    function detail(carid) {

            window.location.href="/teadetail?cardid="+carid;

    }
   function sysupdate(opname,op) {
       window.location.href="/sysupdate?optname="+opname+"&opt="+op;
   }
</script>

</html>
